
let Mock = require("mockjs");
let Random = Mock.Random;

// 用户-注册-模拟接口
Mock.mock(/\/otc\/tradingOrders/, "post", (req, res) => {
    console.log('拦截到数据')
    return {
        code: 200,
        msg: "Sucess",
        data: Mock.mock({
            'list|5-20': [
                {
                    'merchant': '@name',
                    'order|1-9999': 100,
                    'rate|1-99': 50,
                    'price|200-250': 100,
                    'total_money|200-250': 100,
                    'amount|500-99999': 1000,
                    'limit_min|500-888': 1000,
                    'limit_max|888-9999': 10000,
                    'pay|1': ['alipay', 'wechat', 'bankcard'],
                    'id': '@id'
                }
            ]
        }).list
    };
});